﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="DoAn_BumTruong_DesignPattern.Register" %>
<%@ Register Assembly="MSCaptcha" Namespace="MSCaptcha" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .lenghttext {
            width: 300px;
        }

        .lenghttextpassword {
            width: 313px;
        }
        .baterror {
            color:red;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">
    <div class="round round-content">
        <p style="text-align: center; font-size: 20px; font-weight: bold;">ĐĂNG KÝ TÀI KHOẢN</p>
        <div style="padding-left: 200px;">
            <asp:CreateUserWizard ID="CreateUserWizard1" runat="server">
                <WizardSteps>
                    <asp:CreateUserWizardStep ID="RegisterUserWizardStep" runat="server">
                        <ContentTemplate>
                            <span>
                                <asp:Literal ID="ErrorMessage" runat="server"></asp:Literal>
                            </span>
                            <fieldset>
                                <p>
                                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" CssClass="labelcreatecount">Tên đăng nhập: </asp:Label><br />
                                    <asp:TextBox ID="UserName" runat="server" CssClass="lenghttext masterTooltip" ToolTip="Enter you username"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server"
                                        ErrorMessage="*" ControlToValidate="UserName" CssClass="baterror"
                                        ValidationGroup="RegisterUserValidationGroup"></asp:RequiredFieldValidator>
                                </p>

                                <p>
                                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" CssClass="labelcreatecount">Mật khẩu:</asp:Label><br />
                                    <asp:TextBox ID="Password" runat="server" Height="27px" CssClass="lenghttextpassword masterTooltip" TextMode="Password" ToolTip="Enter you password"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server"
                                        ErrorMessage="*" ControlToValidate="Password" CssClass="baterror"
                                        ValidationGroup="RegisterUserValidationGroup"></asp:RequiredFieldValidator>
                                </p>

                                <p>
                                    <asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="ConfirmPassword" CssClass="labelcreatecount">Nhập lại mật khẩu: </asp:Label><br />
                                    <asp:TextBox ID="ConfirmPassword" runat="server" Height="27px" CssClass="lenghttextpassword masterTooltip"
                                        TextMode="Password" ToolTip="Enter you confirm passwrod"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server"
                                        ErrorMessage="*" ControlToValidate="ConfirmPassword" CssClass="baterror"
                                        ValidationGroup="RegisterUserValidationGroup"></asp:RequiredFieldValidator>
                                    <asp:CompareValidator ID="PasswordCompare" runat="server" ErrorMessage="*" ControlToCompare="Password" ControlToValidate="ConfirmPassword" ValidationGroup="RegisterUserValidationGroup" CssClass="baterror"></asp:CompareValidator>
                                </p>

                                <p>
                                    <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email" CssClass="labelcreatecount">Email: </asp:Label><br />
                                    <asp:TextBox ID="Email" runat="server" CssClass="lenghttext masterTooltip" ToolTip="Enter you email"></asp:TextBox>
                                    <asp:RegularExpressionValidator ID="EmailRequired" runat="server"
                                        ErrorMessage="*" CssClass="baterror" ControlToValidate="Email"
                                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                        ValidationGroup="RegisterUserValidationGroup"></asp:RegularExpressionValidator>
                                </p>
                            </fieldset>
                            <p style="text-align: center">
                                <asp:Button ID="CreateUserButton" runat="server" Text="Đăng ký" ValidationGroup="RegisterUserValidationGroup" CommandName="MoveNext" />
                            </p>
                        </ContentTemplate>
                        <CustomNavigationTemplate>
                        </CustomNavigationTemplate>
                    </asp:CreateUserWizardStep>
                    <asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server"></asp:CompleteWizardStep>
                </WizardSteps>
            </asp:CreateUserWizard>
        </div>
    </div>
</asp:Content>
